package com.wisdytech.ccdserver.bucket.api.impl;

import com.wisdytech.ccdserver.bucket.api.IBucketTaskMngService;
import com.wisdytech.ccdserver.bucket.dto.BucketTaskVo;
import com.wisdytech.ccdserver.bucket.serveice.IBucketTaskService;
import com.wisdytech.common.bean.Filter;
import com.wisdytech.common.bean.MultiResultResponse;
import com.wisdytech.common.bean.UniqueResultResponse;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class BucketTaskMngServiceImpl implements IBucketTaskMngService {

    @Autowired
    private IBucketTaskService bucketTaskService;


    @Override
    public MultiResultResponse findTaskAndSearchProgress(Filter filter) {
        return bucketTaskService.findTaskAndSearchProgress(filter);
    }

    @Override
    public UniqueResultResponse deleteBucketTaskByIds(Filter filter) {
        UniqueResultResponse uniqueResultResponse = bucketTaskService.deleteBucketTaskByIds(filter);
        return uniqueResultResponse;
    }

    @Override
    public UniqueResultResponse interruptBucketTaskByIds(Filter filter) {
        UniqueResultResponse uniqueResultResponse = bucketTaskService.interruptBucketTaskByIds(filter);
        return uniqueResultResponse;
    }
}
